package com.zwj.design.factory.abs.factory.impl;

import com.zwj.design.factory.abs.factory.AbstractFactory;
import com.zwj.design.factory.abs.service.BasketBall;
import com.zwj.design.factory.abs.service.FootBall;
import com.zwj.design.factory.abs.service.impl.AntaBasketBall;
import com.zwj.design.factory.abs.service.impl.AntaFootBall;

/**
 * 具体工厂，负责生产安踏篮球，安踏足球
 */
public class AntaFactory implements AbstractFactory {
    @Override
    public BasketBall makeBasketBall() {
        return new AntaBasketBall();
    }

    @Override
    public FootBall makeFootBall() {
        return new AntaFootBall();
    }
}
